package xcmg.device.dao.mapper.warehouse;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.warehouse.DeliveryInstructionDO;
import xcmg.device.service.vo.warehouse.DeliveryInstructionVO;

import java.util.List;

@Mapper
public interface DeliveryInstructionMapper {
    int deleteByPrimaryKey(String id);

    int insert(DeliveryInstructionDO record);

    DeliveryInstructionDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(DeliveryInstructionDO record);

    List<DeliveryInstructionDO> list(DeliveryInstructionVO vo);

    List<String> findOrderList(@Param("ids") List<String> ids);

    int remove(@Param("ids") List<String> ids);

    List<DeliveryInstructionDO> findByIds(@Param("ids") List<String> ids);

    DeliveryInstructionDO selectByDeliveryOrder(@Param("deliveryOrder") String deliveryOrder, @Param("orgId") String orgId);

    DeliveryInstructionDO selectByDeliveryInstruction(@Param("deliveryInstructionNo") String deliveryInstructionNo, @Param("orgId") String orgId);

    int findCountForExportAll(DeliveryInstructionVO vo);

    int findForDeleteByIds(@Param("ids") List<String> ids);

    int updateStatus(@Param("status") int status, @Param("billNo") String billNo);

}